// import { connection } from './conn';
// let http = require('http');
var connection = require('./conn')

function query(sql, en) {
  connection.query(sql, function(err, result) {
    if (err) {
      en(false)
    }
    en(result)
  })
  // connection.end();
}

module.exports = query